package com.yvan.periscope.alert;

import com.dangdang.ddframe.job.api.ShardingContext;
import com.dangdang.ddframe.job.api.simple.SimpleJob;
import com.yvan.elasticjob.ElasticSimpleJob;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * Created by Administrator on 2018/8/31.
 */
@Slf4j
@Component
public class CronJob implements SimpleJob{

    private Long alarmId = 0L;

    @Override
    public void execute(ShardingContext shardingContext) {
        //TODO use this alarm
        log.info(Thread.currentThread().getName() + "          " + shardingContext.getJobParameter());
    }
}
